
cppRepFolder = SQL_cpp_representation/
SQLparserFolder = SQL_parser/
formulaRepFolder = ../Formula_representation/
minizincFolder = ../MiniZinc/

all: release

debug: parserDebug
	g++ -g main.c -o stcg -lfl -I$(cppRepFolder) -I$(SQLparserFolder) -I$(formulaRepFolder) -I$(minizincFolder) -I$(cppRepFolder)*.c $(cppRepFolder)*.o $(formulaRepFolder)*.o $(minizincFolder)*.o -I/usr/local/include -L/usr/local/lib 

release: parser
	g++ main.c -o stcg -lfl -I$(cppRepFolder) -I$(SQLparserFolder) -I$(formulaRepFolder) -I$(minizincFolder) -I$(cppRepFolder)*.c $(cppRepFolder)*.o $(formulaRepFolder)*.o $(minizincFolder)*.o -I/usr/local/include -L/usr/local/lib 

parser:
	cd $(SQLparserFolder); make

parserDebug:
	cd $(SQLparserFolder); make debug

clean:
	cd $(SQLparserFolder); make clean
	rm ./stcg
